﻿set(MY_PROJECT_NAME encode_dlm_cls_v2)
project(${MY_PROJECT_NAME} LANGUAGES CXX CUDA)

include_directories(
	${BOOST_INCLUDEDIR}
	${MY_CUDA_INCLUDE_DIRS}
	${MY_TRT_INCLUDE_DIR}
	${MY_YAML_INCLUDE_DIR}
	${MY_CRYPTOPP_INCLUDE_DIR}
)
link_directories(
	${Boost_LIBRARY_DIRS}
	${MY_CUDA_LIBRARY_DIRS}
	${MY_TRT_LIB_DIR}
	${MY_YAML_LIB_DIR}
	${MY_CRYPTOPP_LIB_DIR}
)


file(GLOB_RECURSE CURRENT_HEADERS  *.h *.hpp *.cuh)
file(GLOB CURRENT_SOURCES  *.cpp *.cu)
source_group("Include" FILES ${CURRENT_HEADERS}) 
source_group("Source" FILES ${CURRENT_SOURCES})

add_executable(${MY_PROJECT_NAME}
	${CURRENT_HEADERS} 
	${CURRENT_SOURCES} 
)

target_link_libraries(${MY_PROJECT_NAME}  PRIVATE 
	${MY_CUDA_LIBS} dxgi
	${MY_TRT_LIBS}
	${MY_YAML_LIB}
	${MY_CRYPTOPP_LIB}
)
set(MY_PATH "PATH=%PATH%" 
	#${Qt5_BIN_DIR}
	#${MY_OPENCV_BIN_DIR} 
	${MY_CRYPTOPP_BIN_DIR} 
	${MY_YAML_BIN_DIR} 
	${MY_TRT_BIN_DIR} 
	${MY_CUDNN_BIN_DIR}
)

set_property(TARGET ${MY_PROJECT_NAME} PROPERTY VS_DEBUGGER_ENVIRONMENT ${MY_PATH})

install(TARGETS ${MY_PROJECT_NAME} DESTINATION bin)

unset(MY_PROJECT_NAME)